<#macro help title="" right=false>
  <i class="fa fa-question-circle mx-1 cursor-p text-warning" data-toggle="tooltip" title="${title!'这是一个提示，但没有添加任何内容'}"
          data-placement="top" <#if right>style="right:1.5rem;"</#if>></i>
</#macro>
<#macro css src=[]>
    <#if src?is_string && src?has_content>
      <link href="${src}" rel="stylesheet">
    </#if>
    <#if src?is_sequence>
        <#list src as s>
          <link href="${s}" rel="stylesheet">
        </#list>
    </#if>
</#macro>
<#macro js src=[]>
    <#if src?is_string && src?has_content>
      <script src="${src}" type="text/javascript"></script>
    </#if>
    <#if src?is_sequence>
        <#list src as s>
          <script src="${s}" type="text/javascript"></script>
        </#list>
    </#if>
</#macro>
<#macro bsModal id="myBsModal" title="提示信息" saveBtnText="确定" saveBtnId="bsModalSaveBtn" saveBtnClose=false closeBtnText="取消"
closeBtnId="bsModalCloseBtn" withCloseBtn=true withModalFooter=true withSaveBtn=true withCloseBtn=true bigModal=false centered=false>
  <div class="modal fade" id="${id}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog <#if bigModal>modal-lg</#if> <#if centered>modal-dialog-centered</#if>"
            style="font-size: 0.8rem;">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title" id="myModalLabel">${title}</h4>
            <#if withCloseBtn>
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 1.3rem;">
                &times;
              </button>
            </#if>
        </div>
        <div class="modal-body" <#if bigModal>style="width: 800px;"</#if>>
            <#nested />
        </div>
          <#if withModalFooter>
            <div class="modal-footer">
                <#if withCloseBtn>
                  <button type="button" class="btn btn-light" data-dismiss="modal">${closeBtnText}</button>
                </#if>
                <#if withSaveBtn>
                  <button id="${saveBtnId}" type="button" class="btn btn-primary"
                          <#if saveBtnClose>data-dismiss="modal"</#if>>${saveBtnText}</button>
                </#if>
            </div>
          </#if>
      </div>
    </div>
  </div>
</#macro>